package com.jiyun.jiyunmall.member.feign.impl;

import com.jiyun.jiyunmall.common.page.PageData;
import com.jiyun.jiyunmall.common.utils.Result;
import com.jiyun.jiyunmall.member.dto.CouponDTO;
import com.jiyun.jiyunmall.member.feign.CouponFeign;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class CouponFeignFallback implements CouponFeign {
    @Override
    public Result<PageData<CouponDTO>> page(Map<String, Object> params) {
        System.out.println("降级了。。。");
        // 假装做了一些降级处理、数据上报、 预警、发短信。。。。。
        return new Result();
    }
}
